<%--
  User: Shengzhao Li
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>事件</title>
</head>
<body>
<div id="event_overview_page" data-role="page" class="page">
    <div data-role="header" data-theme="f">
        <a href="${contextPath}/m/dashboard" data-icon="home" data-direction="reverse"
           data-transition="slide">主页</a>

        <h1>事件</h1>
        <a href="form" data-icon="plus" data-transition="flip">添加</a>
    </div>
    <div data-role="content">
        <div class="center red" style="display: none;" id="save_event_info">保存事件成功!</div>
        <ol data-role="listview" data-inset="true">
            <c:forEach items="${overviewDto.list}" var="e">
                <li>
                    <a href="details/${e.guid}">${e.name}</a>
                </li>
            </c:forEach>
        </ol>
    </div>
    <div data-role="footer" data-position="fixed" data-theme="d">
        <div data-role="navbar">
            <ul>
                <li>
                    <a href="../overview" data-icon="arrow-l" data-direction="reverse" data-transition="flip">返回</a>
                </li>
            </ul>
        </div>
    </div>
    <script type="text/javascript">
        $(function() {
            <c:if test="${param.addEvent}">
            $("#save_event_info").fadeIn(800).delay(800).fadeOut(800);
            </c:if>
        });
    </script>
</div>
</body>
</html>